package com.pap.sequences.sequence.service.impl;

import com.pap.sequences.sequence.entity.SysSequence;
import com.pap.sequences.sequence.mapper.SysSequenceMapper;
import com.pap.sequences.sequence.service.ISysSequenceService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Transactional
@Service("sysSequenceService")
public class SysSequenceServiceImpl implements ISysSequenceService {

    @Resource(name = "sysSequenceMapper")
    private SysSequenceMapper mapper;

    @Override
    public int deleteByPrimaryKey(String id) {
       return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int selectCountByMap(Map<Object, Object> map) {
      return mapper.selectCountByMap(map);
    }

    @Override
    public List<SysSequence> selectListByMap(Map<Object, Object> map) {
        return mapper.selectListByMap(map);
    }

    @Override
    public int insert(SysSequence record) {
       return mapper.insert(record);
    }

    @Override
    public int insertSelective(SysSequence record) {
       return mapper.insertSelective(record);
    }

    @Override
    public SysSequence selectByPrimaryKey(String id) {
       return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(SysSequence record) {
       return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SysSequence record) {
      return mapper.updateByPrimaryKey(record);
    }
}